'''
Created on Aug 13, 2019

@author: yc
'''
import numpy as np

# aa = [1,2,3]
# bb = 2 * aa
# print(bb)

# cc = []
# dd = [1,2,3]
# ee = 2
# cc.append(ee)
# print(cc)


dd = np.zeros((6,10),dtype=int)
print(dd)
 
print("-------切片处理-----------")
dd[3][1] = 1
print(dd)
 
# dd[2][1:5]=1
# print(dd)

# dd = np.array(dd)
# print(dd[3:6,5])
# for j in range(3,6):
#     print(dd[j][2])
# 
# print("----------------------")
# a = 0
# for a,i in enumerate(range(5,-1,-1)):
#     print(a,"--",i)
# print("a=",a)
# print(dd[5][3:6])

# dd[3:6][5]=1
# print(dd)
 
# print("-------循环-----------")
# for i,e in enumerate(dd[2][7::-1]):
#     print(str(i),"--",str(e))
#     print(e)
    
# ff = [1,2,3,4,5,6,7]
# for i,e in enumerate(ff):
#     print(i,"--",e)

# print("-------循环-----------")
# WORLD_MATRIX = np.zeros((100, 60),dtype=int)
# WORLD_MATRIX[30:60][45] = 1


